.class public Lcom/esfile/screen/recorder/videos/edit/j;
.super Les/t6;
.source "VideoEditRedDotConfig.java"


# static fields
.field private static d:Lcom/esfile/screen/recorder/videos/edit/j;


# instance fields
.field private c:Landroid/content/Context;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/t6;-><init>()V

    .line 2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    move-object p1, v0

    .line 3
    :goto_0
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/j;->c:Landroid/content/Context;

    .line 4
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;->values()[Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/j;->a([Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;)V

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/esfile/screen/recorder/videos/edit/j;
    .locals 2

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/videos/edit/j;->d:Lcom/esfile/screen/recorder/videos/edit/j;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/esfile/screen/recorder/videos/edit/j;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/j;->d:Lcom/esfile/screen/recorder/videos/edit/j;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/j;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/j;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/esfile/screen/recorder/videos/edit/j;->d:Lcom/esfile/screen/recorder/videos/edit/j;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    .line 6
    :cond_1
    :goto_0
    sget-object p0, Lcom/esfile/screen/recorder/videos/edit/j;->d:Lcom/esfile/screen/recorder/videos/edit/j;

    return-object p0
.end method

.method private a([Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;)V
    .locals 8

    .line 7
    array-length v0, p1

    if-nez v0, :cond_0

    .line 8
    invoke-virtual {p0}, Les/t6;->a()V

    goto :goto_1

    .line 9
    :cond_0
    invoke-virtual {p0}, Les/t6;->b()V

    .line 10
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    const/4 v3, 0x1

    if-ge v1, v0, :cond_2

    aget-object v4, p1, v1

    .line 11
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "k_nfp_"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/Enum;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v5}, Les/t6;->a(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_1

    .line 12
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/Enum;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2, v3}, Les/t6;->b(Ljava/lang/String;Z)V

    const/4 v2, 0x1

    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    if-eqz v2, :cond_3

    const-string p1, "k_svebrd"

    .line 13
    invoke-virtual {p0, p1, v3}, Les/t6;->b(Ljava/lang/String;Z)V

    .line 14
    :cond_3
    invoke-virtual {p0}, Les/t6;->c()V

    :goto_1
    return-void
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;)Z
    .locals 2
    .param p1    # Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 15
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "k_nfp_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Enum;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Les/t6;->a(Ljava/lang/String;Z)Z

    move-result p1

    return p1
.end method

.method public b(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;)V
    .locals 4
    .param p1    # Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "k_nfp_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Enum;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Les/t6;->b(Ljava/lang/String;Z)V

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/j;->g()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 3
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;->values()[Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;

    move-result-object p1

    .line 4
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_1

    aget-object v3, p1, v2

    .line 5
    invoke-virtual {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/j;->a(Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditTabFactory$NewFuncId;)Z

    move-result v3

    if-eqz v3, :cond_0

    const/4 v0, 0x1

    goto :goto_1

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    if-nez v0, :cond_2

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/j;->f()V

    :cond_2
    return-void
.end method

.method protected d()Landroid/content/SharedPreferences;
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/j;->c:Landroid/content/Context;

    const-string v1, "sp_video_edit"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method

.method public f()V
    .locals 2

    const-string v0, "k_svebrd"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p0, v0, v1}, Les/t6;->b(Ljava/lang/String;Z)V

    return-void
.end method

.method public g()Z
    .locals 2

    const-string v0, "k_svebrd"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p0, v0, v1}, Les/t6;->a(Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method
